<template>
<div class="loading-main">
  <span :class="loadClass"></span>
</div>
</template>
<script>
export default {
  props: {
    loadClass: {
      type: String,
      default: 'new-loading'
    }
  },
  data () {
    return {
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang="less">

/*loading*/
.loading-main{
  width:50px;
  margin: 20% auto 0;
}
.new-loading {
  margin: 10px auto;
  position: relative;
  width: 1px;
  height: 1px;
}

.new-loading:before,
.new-loading:after {
  position: absolute;
  display: inline-block;
  width: 15px;
  height: 15px;
  content: "";
  border-radius: 100%;
  background-color: #c8c8c8;
}

.new-loading:before {
  left: -15px;
  animation: ball-pulse infinite 0.75s -0.4s cubic-bezier(0.2, 0.68, 0.18, 1.08);
}

.new-loading:after {
  right: -15px;
  animation: ball-pulse infinite 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08);
}

@keyframes ball-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

</style>